import QtQuick 2.7
import QtQuick.Window 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.0

ApplicationWindow {
    id: window
    visible: true
    width: 1280
    height: 720
    flags: Qt.FramelessWindowHint
    title: qsTr("Hello World")

    function px4mm(mm) {
        return mm * Screen.pixelDensity;
    }

    Drawer {
        id: drawer
        width: px4mm(100)
        height: window.height
        dragMargin: px4mm(10)
        Rectangle {
            anchors.fill: parent
            color: "blue"
            Column {

                Text {
                    text: drawer.width
                }
                Text {
                    text: Screen.pixelDensity
                }
                Text {
                    text: Screen.devicePixelRatio
                }

            }
        }
    }

    MusicPlayerPage {
        anchors.fill: parent
    }
}
